package observer.zhss;

import iterator.Interator;

import java.util.Observable;

/**
 * @author zhangxi
 * @date 2021/10/28
 */
public class Subject extends Observable {

    private Integer state;

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
        this.setChanged();
        this.notifyObservers(state);
    }
}
